//
//  TestPath.h
//  TestMac
//
//  Created by 小星星吃KFC on 2021/6/29.
//

#import <Foundation/Foundation.h>

static void TestPath(void){
    
    NSLog(@"stringsByAppendingPaths=%@",[@"a" stringsByAppendingPaths:@[@"1",@"2"]]);
    NSLog(@"pathWithComponents=%@",[NSString pathWithComponents:@[@"1",@"2",@"3.png",@"4"]]);
    
    NSString *path = @"1/2/3/1.jgp";
    NSString *home = [@"~" stringByExpandingTildeInPath];
    NSLog(@"home=%@",home);
    NSLog(@"path=%@",[path stringByExpandingTildeInPath]);
    
    
    NSLog(@"stringByExpandingTildeInPath=%@", [@"~/Documents/demo.pdf" stringByExpandingTildeInPath]);
    NSLog(@"stringByExpandingTildeInPath=path=%@", [path stringByExpandingTildeInPath]);
    NSLog(@"stringByStandardizingPath=%@", [@"../Documents/demo.pdf" stringByStandardizingPath]);
    
    
    //        NSLog(@"pathWithComponents=%@",[NSString pathWithComponents:@[@"1",@"2",@"3"]]);
    
    
    
}
